import { FC } from 'react'
import { Card, Col, Row } from 'antd'
import Icon from '@/components/Icon'

const ShortCut: FC = () => {
  const shortcutData = [
    {
      title: '微信',
      icon: 'WechatOutlined',
    },
    {
      title: '发布商品',
      icon: 'InboxOutlined',
    },
    {
      title: '发布商品',
      icon: 'InboxOutlined',
    },
    {
      title: '发布商品',
      icon: 'InboxOutlined',
    },
    {
      title: '发布商品',
      icon: 'InboxOutlined',
    },
    {
      title: '微信',
      icon: 'WechatOutlined',
    },
    {
      title: '发布商品',
      icon: 'InboxOutlined',
    },
    {
      title: '发布商品',
      icon: 'InboxOutlined',
    },
    {
      title: '发布商品',
      icon: 'InboxOutlined',
    },
    {
      title: '发布商品',
      icon: 'InboxOutlined',
    },
  ]

  return (
    <Card className="app-shortcut">
      <Row gutter={3}>
        {shortcutData.map(({ icon, title }, index) => {
          return (
            <Col span={5} key={index}>
              <div className="shortcut-box">
                <Icon type={icon} />
                <div className="shortcut-box">{title}</div>
              </div>
            </Col>
          )
        })}
      </Row>
    </Card>
  )
}

export default ShortCut
